aboutsummaryrefslogtreecommitdiffstats
path: root/xz-java [disowned]
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-11-23 21:50:57 +0100
committerMattias Andrée <maandree@kth.se>2017-11-23 21:50:57 +0100
commit5f15becca30a1ab7557851230a7e31d00aab9d8e (patch)
tree57d8f1fbae0e95a55763b21a6697b0017619da76 /xz-java [disowned]
parentUpdate sha3sum (diff)
downloadaur-packages-5f15becca30a1ab7557851230a7e31d00aab9d8e.tar.gz
aur-packages-5f15becca30a1ab7557851230a7e31d00aab9d8e.tar.bz2
aur-packages-5f15becca30a1ab7557851230a7e31d00aab9d8e.tar.xz
Disown some packages
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'xz-java [disowned]')
-rw-r--r--xz-java [disowned]/PKGBUILD26
l---------xz-java [disowned]/upload1
-rwxr-xr-xxz-java [disowned]/watch-20
3 files changed, 47 insertions, 0 deletions
diff --git a/xz-java [disowned]/PKGBUILD b/xz-java [disowned]/PKGBUILD
new file mode 100644
index 0000000..56993be
--- /dev/null
+++ b/xz-java [disowned]/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
+pkgname=xz-java
+pkgver=1.5
+pkgrel=1
+pkgdesc="Java library for XZ and LZMA compression"
+arch=('any')
+url="http://tukaani.org/xz/java.html"
+license=('Public Domain')
+depends=('java-runtime>=1.4')
+makedepends=('java-environment>=1.4', 'unzip')
+provides=('xz-java')
+conflicts=('xz-java')
+source=(http://tukaani.org/xz/xz-java-$pkgver.zip)
+sha256sums=(0146e437b01ac77046d256a2e7537768b6922c49635c27fa40b3cf745bb2db74)
+
+build() {
+ cd "$srcdir"
+ javac -source 1.4 -target 1.4 -d . -s src -cp . $(find src | grep \\.java\$)
+ jar -cf xz-java.jar $(find . | grep \\.class\$)
+}
+
+package() {
+ cd "$srcdir"
+ install -d "$pkgdir/usr/lib/"
+ install -m 755 xz-java.jar "$pkgdir/usr/lib/"
+}
diff --git a/xz-java [disowned]/upload b/xz-java [disowned]/upload
new file mode 120000
index 0000000..1e7a8be
--- /dev/null
+++ b/xz-java [disowned]/upload
@@ -0,0 +1 @@
+../upload \ No newline at end of file
diff --git a/xz-java [disowned]/watch- b/xz-java [disowned]/watch-
new file mode 100755
index 0000000..ff564b0
--- /dev/null
+++ b/xz-java [disowned]/watch-
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+[ -f 'index.html?p=xz-java.git;a=blob_plain;f=NEWS;hb=HEAD' ] && rm 'index.html?p=xz-java.git;a=blob_plain;f=NEWS;hb=HEAD'
+wget 'http://git.tukaani.org/?p=xz-java.git;a=blob_plain;f=NEWS;hb=HEAD' >/dev/null 2>/dev/null
+if [ $? = 0 ]; then
+ [ -f unfetchable ] && rm unfetchable
+ md5sum < 'index.html?p=xz-java.git;a=blob_plain;f=NEWS;hb=HEAD' > new-sum
+ touch sum
+ if [ "$(cat sum)" = "$(cat new-sum)" ]; then
+ rm new-sum
+ else
+ mv new-sum sum
+ echo 'xz-java'
+ fi
+ rm 'index.html?p=xz-java.git;a=blob_plain;f=NEWS;hb=HEAD'
+elif [ ! -f unfetchable ]; then
+ touch unfetchable
+ echo 'xz-java (unfetchable)'
+fi
+